package com.company.calendar.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 节假日类型实体类
 * 
 * @author System
 * @since 1.0.0
 */
@TableName("holiday_types")
@Data
public class HolidayType {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("type_name")
    private String typeName;
    
    @TableField("type_code")
    private String typeCode;
    
    private String color = "#FF6B6B";
    
    private String description;
    
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
    
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
    
    @TableLogic
    @TableField("is_deleted")
    private Boolean isDeleted = false;
}


